package com.itheima.mp.enumhandler;

import com.baomidou.mybatisplus.annotation.EnumValue;

// 状态枚举
public enum UserStatus {
    NORMAL(1, "正常"), FREEZE(2, "冻结");

    @EnumValue // 告知写入的字段
    private final int value;
    private final String desc;

    UserStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
